package com.dxd.onlineshop.pojo;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class Notification {
    private Long id;
    private Integer userId;
    private String content; //通知内容
    private String type;
    private Boolean isRead;
    private LocalDateTime createdAt;

    // 可以根据需要添加构造函数
    public Notification() {
        this.isRead = false;
        this.createdAt = LocalDateTime.now();
    }

    public Notification(Integer userId, String content, String type) {
        this();
        this.userId = userId;
        this.content = content;
        this.type = type;
    }
}
